package com.matongxue.springboot;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("car1")
//@Scope("prototype")
@Data
public class Car {
    @Value("${car.name}")
    private String name;
    @Value("1111111")
    private float price;



}
